/**
*@Author: zt
*@Description: 文档相关接口
*@Date 2024-08-19
*/
import request from '@/http'

// 列表分页查询
export const page = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTFloder/page',
    data: data
  })
}



// 文件夹的明细
export const detailPage = async (data: object) => {
  return await request.post({
    url: '/api/docTDocument/selectDocument',
    data: data
  })
}


// 新增
export const add = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTFloder',
    data: data
  })
}

// 修改
export const update = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTFloder/update',
    data: data
  })
}

// 删除
export const del = async (data: Array<any>) => {
  return await request.post({
    url: '/api/bizz/docTFloder/delete',
    data,
    headersType: 'application/x-www-form-urlencoded'
  })
}


// 新增文件夹文档
export const addEdit = async (data: object) => {
  return await request.post({
    url: '/api/bizz/docTDocument',
    data: data
  })
}

// 删除文件夹文档
export const delEdit  = async (data: Array<any>) => {
  return await request.post({
    url: '/api/bizz/docTDocument/delete',
    data,
    headersType: 'application/x-www-form-urlencoded'
  })
}